package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {

   Set<Permission> findByRoleId(Integer roleId);
    void add(Permission permission);

    Page<Permission> findByCondition(String queryString);

    void deleteById(Integer id);

    void deletePermissionAndRoleRel(Integer id);

    Permission findById(Integer id);

    void edit(Permission permission);
    List<Permission> findAll();

}
